find_package( OpenCV REQUIRED )
INCLUDE_DIRECTORIES(../include)

ADD_SUBDIRECTORY(../src src)


ADD_EXECUTABLE(logTest logTest)
TARGET_LINK_LIBRARIES(logTest mylib)

ADD_EXECUTABLE(pub pub)
TARGET_LINK_LIBRARIES(pub mylib)

ADD_EXECUTABLE(sub sub)
TARGET_LINK_LIBRARIES(sub mylib)

ADD_EXECUTABLE(imgSend imgSend)
TARGET_LINK_LIBRARIES(imgSend  ${OpenCV_LIBS} mylib)

ADD_EXECUTABLE(imgRecv imgRecv)
TARGET_LINK_LIBRARIES(imgRecv ${OpenCV_LIBS} mylib)

ADD_EXECUTABLE(cnatsTest cnatsTest)
TARGET_LINK_LIBRARIES(cnatsTest)
TARGET_LINK_LIBRARIES(cnatsTest mylib)
